<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class CarPackageOrderAttr extends Model
{
	
    protected $table = 'car_package_order_attrs';

    protected $fillable = [
        'user_id',
        'order_id',
        'package_id',
        'package_title',
        'attr_title',
        'price',
        'usable_number',
        'total_number',
        'used_number',
        'admin_user_id',
        'admin_user_ip'
    ];

    public function order()
    {
        return $this->belongsTo(CarPackageOrder::class);
    }

    public function carPackageUsedLog()
    {
        return $this->hasMany(CarPackageUsedLog::class);
    }
}
